<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  
  <title>我的技术与生活——log | Hexo</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <link rel="shortcut icon" href="../imgs/shortcut-icon.ico" type="image/x-icon">
  <link rel="stylesheet" href="../css/public.css" />
  <link rel="stylesheet" href="../css/layout.css" />
  <link rel="stylesheet" href="../css/iconfont.css" />
  <link rel="stylesheet" href="../css/APlayer.min.css" />
  <script src="../js/APlayer.min.js"></script>
  <script src="../js/jquery.min.js"></script>
  <script src="../js/jquery.pjax.min.js"></script>

  <script src='//unpkg.com/valine/dist/Valine.min.js'></script>
  <script>
    document.title = `我的技术与生活——log`
  </script>
<meta name="generator" content="Hexo 6.0.0"></head>

<style>
  .load {
    width: 100%;
    height: 100vh;
    background-color: rgb(37, 35, 40);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 9999;
  }
  .load-circle {
    width: 80px;
    height: 80px;
    border: 8px solid orange;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rotate 1s linear infinite;
    filter: drop-shadow(0 0 3px orange);
  }
  .load-circle-inner {
    width: 40px;
    height: 40px;
    border: 8px solid orange;
    border-top-color: transparent;
    border-radius: 50%;
    animation: rotate-reverse .5s linear infinite;
  }
  .load-text {
    margin-top: 20px;
    font-size: 24px;
    color: orange;
    display: flex;
  }
  .load-text span {
    margin: 0 5px;
    text-shadow: 5px 5px 5px orange;
    animation: move 1s linear infinite;
  }
  .load-text span:nth-child(1) {
    animation-delay: -0.6s;
  }
  .load-text span:nth-child(2) {
    animation-delay: -0.5s;
  }
  .load-text span:nth-child(3) {
    animation-delay: -0.4s;
  }
  .load-text span:nth-child(4) {
    animation-delay: -0.3s;
  }
  .load-text span:nth-child(5) {
    animation-delay: -0.2s;
  }
  .load-text span:nth-child(6) {
    animation-delay: -0.1s;
  }
  @keyframes rotate {
    0% { transform: rotate(0); }
    100% { transform: rotate(360deg); }
  }
  @keyframes rotate-reverse {
    0% { transform: rotate(0); }
    100% { transform: rotate(-360deg); }
  }
  @keyframes move {
    0% { transform: translateY(0%) rotate(0) scale(1); }
    20% { transform: translateY(20%) rotate(10deg) scale(1.2); }
    80% { transform: translateY(-10%) rotate(-20deg) scale(.8);}
    100% { transform: translateY(0) rotate(0) scale(1); }
  }

  .progress {
    position: fixed;
    left: 0; top: 0;
    width: 0;
    height: 3px;
    background-color: green;
    transition: all cubic-bezier(0.215, 0.610, 0.355, 1) .1s;
    z-index: 9999;
  }

  .to-up {
    animation: toUp .5s 1;
  }
  .gray {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    display: none;
    pointer-events: none;
    background-color: #000;
    mix-blend-mode: color;
  }
  @keyframes toUp {
    from { transform: translateY(15px); opacity: 0; }
    to { transform: translateY(0) ; opacity: 1; }
  }
</style>
<body>
  <div id="load" class="load">
    <div class="load-circle">
      <div class="load-circle-inner"></div>
    </div>
    <p class="load-text">
      <span>L</span>
      <span>O</span>
      <span>A</span>
      <span>D</span>
      <span>I</span>
      <span>N</span>
      <span>G</span>
    </p>
  </div>
  <div id="container" class="container w-100 vh-100" style="display: none;">
    <header class="header">
  <div class="header-wrapper">
    <div class="header-left">
      <div class="header-search">
        <input id="search-input" type="text" class="header-search--input" placeholder="请输入要检索的文章标题" />
        <span id="search-btn" class="header-search--icon"><i class="iconfont icon-sousuo"></i></span>
      </div>
      <div id="search-layer" class="header-search--layer hidden">
        <p class="title">
          <span>以下是搜索内容：</span>
          <span id="close-layer-btn">关闭</span>
        </p>
        <ul>
        </ul>
      </div>
    </div>
    <div class="header-right">
      <ul class="header-menu">
        <li>
          <a href="https://aizener.github.io/">
            <i class="header-menu--icon iconfont icon-shouye"></i>
            <span class="header-menu--span">首页</span>
          </a>
        </li>
        <li>
          <a href="https://aizener.github.io/log">
            <i class="header-menu--icon iconfont icon-rizhi"></i>
            <span class="header-menu--span">日志</span>
          </a>
        </li>
        <li>
          <a href="https://aizener.github.io/link">
            <i class="header-menu--icon iconfont icon-youqinglianjie"></i>
            <span class="header-menu--span">友情链接</span>
          </a>
        </li>
        <li>
          <a href="https://aizener.github.io/about">
            <i class="header-menu--icon iconfont icon-guanyuwomen"></i>
            <span class="header-menu--span">关于我</span>
          </a>
        </li>
      </ul>
    </div>
  </div>
</header>

<script>
  const ipt = document.querySelector('#search-input')
  const btn = document.querySelector('#search-btn')
  const layer = document.querySelector('#search-layer')
  const posts = JSON.parse(`[{"title":"关于H5新特性拖放API讲解","path":"2022/03/24/关于H5新特性拖放API讲解/"},{"title":"分享基于H5实现扫码功能","cover":"https://p9-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/9c64349191a94bf19bcaeb14a62d328c~tplv-k3u1fbpfcp-zoom-crop-mark:3024:3024:3024:1702.awebp?","path":"2022/08/14/分享基于H5实现扫码功能/"},{"title":"在Vue项目中使用ESLint来检查代码","cover":"https://s3.bmp.ovh/imgs/2022/04/01/647275ce2adecce7.png","path":"2022/03/02/在Vue项目中使用ESLint来检查代码/"},{"title":"如何使用hexo-theme-cola主题","path":"2022/02/17/如何使用hexo-theme-cola主题/"},{"title":"基于Vue对主题修改的思考与实现","cover":"https://s3.bmp.ovh/imgs/2022/04/01/7d831a8e4b739ac2.png","path":"2022/04/01/基于Vue对主题修改的思考与实现/"},{"title":"趣味NodeJS之笔趣阁的小蜘蛛","cover":"https://s3.bmp.ovh/imgs/2022/04/01/05822287376d328d.png","path":"2022/03/08/趣味NodeJS之笔趣阁的小蜘蛛/"}]`)
  ipt.addEventListener('keyup', e => {
    if (e.key === 'Enter') {
      handleSearch()
    }
  })
  btn.addEventListener('click', () => {
    handleSearch()
  })

  document.querySelector('#close-layer-btn').addEventListener('click', () => {
    layer.classList.toggle('hidden')
  })

  function handleSearch() {
    if (ipt.value.trim() === '') {
      return
    }
    let html = ''
    const targetPosts = posts.filter(post => post.title.includes(ipt.value))
    targetPosts.forEach(post => {
      html += `
        <li>
          <div>
            <a href="/${post.path}">${post.title.replace(new RegExp(ipt.value), `<span>${ipt.value}</span>`)}</a>
          </div>
          <img src="${post.cover || '/imgs/default-cover.webp' }" />
        </li>
      `
    })
    if (html.trim () === '') {
      html += '<p class="empty">没有搜索到内容</p>'
    }
    layer.querySelector('ul').innerHTML = html
    layer.classList.remove('hidden')
  }
</script> 
    <section id="main" class="main">
      <div class="main-left-wrapper">
<div class="main-left">
  <div class="main-left--block">
    <div class="main-left--info">
      <img src="../imgs/avatar.jpg"" class="main-left--avatar" />
      <div class="main-left--intro">
        <p class="main-left--name">Cola.</p>
        <div class="main-left--tags">
          <span class="main-left--tag">中二</span>
          <span class="main-left--tag">宅</span>
        </div>
      </div>
    </div>
  
    <div>
      <div class="main-left--motto">
        <p>“花有重开日，人无再少年”</p>
        <p>“一个简单普通的男孩”</p>
      </div>
      <div class="main-left--github">
        <span class="line"></span>
        <a target="_blank" rel="noopener" href="https://github.com/Aizener"><i class="logo iconfont icon-github-fill"></i></a>
        <span class="line"></span>
      </div>
      <div class="main-left--statics">
        <a href="/categories">
          <div>
            <span>2</span>
            <span>分类</span>
          </div>
        </a>
        <a href="/tags">
          <div>
            <span>7</span>
            <span>标签</span>
          </div>
        </a>
        <a href="/archives">
          <div>
            <span>4 </span>
            <span>归档</span>
          </div>
        </a>
      </div>
    </div>
  </div>

  <div class="main-left--block">
    <ul class="main-left--menu">
      
        <li>
          <a href="/">
            <span class="header-menu--span">小站首页</span>
            <i class="header-menu--icon iconfont icon-shouye"></i>
          </a>
        </li>
      
        <li>
          <a href="/log">
            <span class="header-menu--span">个人日志</span>
            <i class="header-menu--icon iconfont icon-rizhi"></i>
          </a>
        </li>
      
        <li>
          <a href="/link">
            <span class="header-menu--span">友情链接</span>
            <i class="header-menu--icon iconfont icon-youqinglianjie"></i>
          </a>
        </li>
      
        <li>
          <a href="/about">
            <span class="header-menu--span">关于自己</span>
            <i class="header-menu--icon iconfont icon-guanyuwomen"></i>
          </a>
        </li>
      
        <li>
          <a href="/tools">
            <span class="header-menu--span">我的工具</span>
            <i class="header-menu--icon iconfont icon-gongju"></i>
          </a>
        </li>
      
    </ul>
  </div>

  <div class="main-left--block">
    <div class="main-left--site">
      <h5 class="main-left--title">
        <span>站点信息</span>
        <i class="iconfont icon-zhandian"></i>
      </h5>
      <p class="main-left--subtitle">
        <span>文章数目：</span>
        <span>6 篇</span>
      </p>
      <p class="main-left--subtitle">
        <span>最近动态：</span>
        <span>6月前</span>
      </p>
      <p class="main-left--subtitle">
        <span>上线时间：</span>
        <span>410天</span>
      </p>
      <p class="main-left--subtitle">
        <span>当前版本：</span>
        <span>v1.0.2</span>
      </p>
    </div>
  </div>
</div></div>
      <div id="main-container" class="main-container">


  <!--  -->

<style>
pre::-webkit-scrollbar {
  width: 5px;
  height: 10px;
  background-color:#F5F5F5;
}
/*定义滚动条轨道
内阴影+圆角*/
pre::-webkit-scrollbar-track {
  background-color:#F5F5F5;
}
/*定义滑块
内阴影+圆角*/
pre::-webkit-scrollbar-thumb {
  background-color: rgb(69, 83, 100);
}

pre:active {
  background-color: rgb(81, 95, 116);
}
</style>
<div class="log">
  
    <div class="log-item">
      <h2 class="log-title">
        <span>2022-09-25 18:52:28</span>
        <span>星期天</span>
      </h2>
      <h1 class="log-main-title"><a href=".././log/20220925.html">有点迷</a></h1>
      <div class="log-wrapper false" style="max-height: 1000px;">
        <article class="article-content"><p>最近有点迷~ 有点迷~ 到底是期待的什么呢？</p>
</article>
        
      </div>
    </div>
  
    <div class="log-item">
      <h2 class="log-title">
        <span>2022-08-18 22:08:00</span>
        <span>星期四</span>
      </h2>
      <h1 class="log-main-title"><a href=".././log/20220818.html">散步</a></h1>
      <div class="log-wrapper false" style="max-height: 1000px;">
        <article class="article-content"><p>今天出来散步，发现最近电力不足街道很多灯都停电了，不过这条小道里的小集市还是这么亮…<br>\(^o^)&#x2F;~</p>
<div style="display: flex;">
<img src="/imgs/log/street1.jpg" style="width: 200px; height: 300px;" />
<img src="/imgs/log/street2.jpg" style="width: 200px; height: 300px;" />

</div>

<p>另外，昨天莫名其妙玩手机玩到快夜里2点钟，今天绝对不能像昨天一样熬夜了！</p>
</article>
        
      </div>
    </div>
  
    <div class="log-item">
      <h2 class="log-title">
        <span>2022-08-17 21:16:44</span>
        <span>星期三</span>
      </h2>
      <h1 class="log-main-title"><a href=".././log/20220817.html">瓜瓜瓜皮~</a></h1>
      <div class="log-wrapper false" style="max-height: 1000px;">
        <article class="article-content"><div style="display: flex; flex-wrap: wrap;">
  <div style="max-width: 450px;">
    <p>今天玩斗鱼的弹幕游戏，花了10几块钱。<br />说少呢其实快一顿饭钱了，说不多呢短短几分钟浪费10几块在一个没啥意义的游戏上...</p>
    <p style="font-weight: bold;">感觉就是没长大，心头有点不舒服╮(╯﹏╰）╭</p>
    <p>还有，，，今天中午买了杯意式一口香咖啡来喝，真的只有一口诶！！！而且苦麻了...虽然只5元钱，但是喝不来浪费了。</p>
    <p style="color: #999; text-decoration: underline;">另外，重新调整下日志的功能，并且在测试调整中，，，</p>
  </div>
  <img src="/imgs/log/coffee.jpg" style="width: 200px; height: 300px; margin-left: 10px;"/>
</div></article>
        
      </div>
    </div>
  
    <div class="log-item">
      <h2 class="log-title">
        <span>2022-08-14 22:35:00</span>
        <span>星期天</span>
      </h2>
      <h1 class="log-main-title"><a href=".././log/20220814.html">再迷茫~</a></h1>
      <div class="log-wrapper false" style="max-height: 1000px;">
        <article class="article-content"><p><span style="text-shadow: 1px 1px 1px #333;">未来在哪里平凡？啊…谁给我答案!</span></p>
</article>
        
      </div>
    </div>
  
    <div class="log-item">
      <h2 class="log-title">
        <span>2022-08-13 13:16:00</span>
        <span>星期六</span>
      </h2>
      <h1 class="log-main-title"><a href=".././log/20200813.html">小聚</a></h1>
      <div class="log-wrapper false" style="max-height: 1000px;">
        <article class="article-content"><p>昨天去和朋友们聚了会儿餐，比较晚才睡却又起的很早o(╥﹏╥)o…<br />莫名感慨，突想起一句诗：人有悲欢离合，月有阴晴圆缺。<p style="color: gray;">博客做了些不重要的优化，并且默认关闭了水波纹（因为比较耗性能）</p></p>
</article>
        
      </div>
    </div>
  
    <div class="log-item">
      <h2 class="log-title">
        <span>2022-07-13 22:18:00</span>
        <span>星期三</span>
      </h2>
      <h1 class="log-main-title"><a href=".././log/20220713.html">翻开了着灰的博客</a></h1>
      <div class="log-wrapper false" style="max-height: 1000px;">
        <article class="article-content"><p>最近重新把博客样式优化了一下，比之前看起来更好看了一点。<br />另外，最近追了一部丧失剧——<a target="_blank" rel="noopener" href="https://movie.douban.com/subject/26947951/" style="text-decoration: underline; color: rgb(29, 155, 240); margin: 0 5px;">《王国》</a>，十分的好看，值得推荐。</p>
</article>
        
      </div>
    </div>
  
    <div class="log-item">
      <h2 class="log-title">
        <span>2022-05-11 23:33:00</span>
        <span>星期三</span>
      </h2>
      <h1 class="log-main-title"><a href=".././log/20220511.html">迷茫~</a></h1>
      <div class="log-wrapper false" style="max-height: 1000px;">
        <article class="article-content"><p>有段时间没弄博客了，最近想起，加了个前几天看到的水波纹插件，效果还算可以，插件连接：<a style="text-decoration: underline; color: rgb(29, 155, 240); margin: 0 5px;" target="_blank" rel="noopener" href="http://uusama.com/643.html">canvas水波纹效果</a>。<br>糟糕的是，最近又茫然起来，加上生活工作的琐事，还真的是挺烦的~</p>
</article>
        
      </div>
    </div>
  
    <div class="log-item">
      <h2 class="log-title">
        <span>2022-03-24 23:27:00</span>
        <span>星期四</span>
      </h2>
      <h1 class="log-main-title"><a href=".././log/20220324.html">冷静</a></h1>
      <div class="log-wrapper false" style="max-height: 1000px;">
        <article class="article-content"><p>保持本心，切勿浮躁。</p>
</article>
        
      </div>
    </div>
  
    <div class="log-item">
      <h2 class="log-title">
        <span>2022-03-03 23:30:00</span>
        <span>星期四</span>
      </h2>
      <h1 class="log-main-title"><a href=".././log/20220303.html">增加评论插件</a></h1>
      <div class="log-wrapper false" style="max-height: 1000px;">
        <article class="article-content"><p>今日新增了文章的留言系统，本来想用畅言的，发现免费版会自带广告！<br />后面，发现了这款<a style="text-decoration: underline; color: rgb(29, 155, 240); margin: 0 5px;" target="_blank" rel="noopener" href="https://valine.js.org/">Valine</a>评论系统，效果还不错，而且目前还有免费无广告版，挺不错。</p>
</article>
        
      </div>
    </div>
  
    <div class="log-item">
      <h2 class="log-title">
        <span>2022-02-25 23:55:00</span>
        <span>星期五</span>
      </h2>
      <h1 class="log-main-title"><a href=".././log/20220225.html">居家办公</a></h1>
      <div class="log-wrapper false" style="max-height: 1000px;">
        <article class="article-content"><p>最近成都疫情比较严重，而我住的高新还是重灾区，所以这周都居家办公了好几天。虽然有点小爽，但是做核酸排队有点烦人。<br/>今日新增了工具页面，用来记录我自己做的实用工具；并且加入了pjax技术来渲染界面。</p>
</article>
        
      </div>
    </div>
  
    <div class="log-item">
      <h2 class="log-title">
        <span>2022-02-18 23:05:00</span>
        <span>星期五</span>
      </h2>
      <h1 class="log-main-title"><a href=".././log/20220218.html">似乎还挺高兴的~</a></h1>
      <div class="log-wrapper false" style="max-height: 1000px;">
        <article class="article-content"><p>我在星期四写星期五的日志，哈哈哈，马上周末了(<em>^▽^</em>)。</p>
</article>
        
      </div>
    </div>
  
    <div class="log-item">
      <h2 class="log-title">
        <span>2022-02-17 22:04:00</span>
        <span>星期四</span>
      </h2>
      <h1 class="log-main-title"><a href=".././log/20220217.html">小站开始的地方</a></h1>
      <div class="log-wrapper false" style="max-height: 1000px;">
        <article class="article-content"><p>今天开始坚持编写博客。</p>
</article>
        
      </div>
    </div>
  
</div>


</div>
      <div class="main-right-wrapper"><div class="main-right">
  <div class="main-right--board">
    <div class="main-right--title">
      <h5>公告栏</h5>
      <i class="iconfont icon-gonggao"></i>
    </div>
    <div class="main-right--content">
      Hello~大噶好。唔系可乐爱宅着，欢迎你们来到我的博客小站，希望能在这里收获到有用的东西哦！ 
    </div>
  </div>

  <div id="aplayer" class="main-right--music"></div>

  <div class="operate-items">
    <div class="operate-item backtop">
      <i class="iconfont icon-huidaodingbu"></i>
      <span>回到顶部</span>
    </div>
    
    <div class="operate-item turn-comment hidden">
      <i class="iconfont icon-pinglun"></i>
      <span>查看评论</span>
    </div>
    
  </div>

  <div class="main-right--site">
    <div class="main-right--power">
      <p>Power By <a target="_blank" rel="noopener" href="https://hexo.io/zh-cn/docs/">Hexo</a>.</p>
      <p>Theme：<a target="_blank" rel="noopener" href="https://github.com/Aizener/hexo-theme-cola">Cola.</a></p>
    </div>
    <p class="main-right--refer"><a target="_blank" rel="noopener" href="https://beian.miit.gov.cn/#/Integrated/index">蜀ICP备2022005384号-1</a> </p>
  </div>
</div>

<script>
  function setOperateItem () {
    const reg = /\d{4}\/\d{2}\/\d{2}\/.+/
    const path = location.pathname
    const commentDom = document.querySelector('.turn-comment')
    if (commentDom) {
      if (reg.test(path) || path.match(/\/log\/.+/)) {
        commentDom.classList.remove('hidden')
      } else {
        commentDom.classList.add('hidden')
      }
    }
  }

  setOperateItem()
  const musics = JSON.parse(`[{"name":"安河桥","artist":"宋冬野","url":"http://ting6.yymp3.net:82/new25/songdongye/11.mp3","cover":"https://img2.baidu.com/it/u=1260056724,1076343118&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500"},{"name":"卡布达","artist":"暂无","url":"music/kabuda.mp3","cover":"https://img2.baidu.com/it/u=705831265,2862720033&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500"}]`)
  const ap = new APlayer({
    container: document.querySelector('#aplayer'),
    audio: musics,
  })

  $(document).on('pjax:complete', function() {
    setOperateItem()
  })

  document.querySelector('.backtop').addEventListener('click', () => {
    document.documentElement.scrollTo({
      top: 0,
      behavior: 'smooth'
    })
  })
  const dom = document.querySelector('.turn-comment')
  dom && dom.addEventListener('click', () => {
    const commentDom = document.querySelector('.comments-intro')
    if (!commentDom) return
    const top = commentDom.offsetTop, height = commentDom.offsetHeight
    document.documentElement.scrollTo({
      top: top - 2 * height,
      behavior: 'smooth'
    })
  })
</script></div>
    </section>
  </div>
  <div id="progress" class="progress"></div>
  <div id="gray" class="gray"></div>

  <script>
    function initScroll () {
      document.addEventListener('scroll', () => {
        const doc = document.documentElement
        const scrollTop = doc.scrollTop
        const pageHeight = doc.offsetHeight
        const clientHeight = doc.clientHeight
        const ratio = scrollTop / (pageHeight - clientHeight)
        const progress = document.querySelector('#progress')
        const avatarImg = document.querySelector('.main-left--avatar')
        progress.style.width = (100 * ratio) + '%'
        avatarImg.style.transform = `rotate(${360 * ratio}deg)`
      })
    }

    const rootPath = "/"

    const checkAndSetArticlePageLayout = () => {
      if (/^\/?\d{4}\/\d{2}\/\d{2}\/.*/.test(location.pathname.replace(rootPath, ''))) {
        $('.main-container, .main-right, .main-right-wrapper').addClass('is-article')
      } else {
        $('.main-container, .main-right, .main-right-wrapper').removeClass('is-article')
      }
    }

    const gray = "none"
    const setGrayStyle = () => {
      if (gray === 'none') {
        return
      } else if (gray === 'index') {
        location.pathname === '/' ? $('#gray').show() : $('#gray').hide()
      } else if (gray === 'all') {
        $('#gray').show()
      }
    }
    setGrayStyle()


    window.onload = function () {
      checkAndSetArticlePageLayout()
      setTimeout(() => {
        $('#load').slideUp()
        $('#container').slideToggle()
        setTimeout(() => {
          initScroll()
        }, 500)
      }, 500)
    }
    
    let status = 0
    // 对所有链接跳转事件绑定pjax容器container
    $(document).pjax('a[target!=_blank]', '#main-container', {
      container: '#main-container',
      fragment: '#main-container',
      timeout: 8000
    })

    $(document).on('pjax:start', function() {
    })
    $(document).on('pjax:complete', function() {
      status = 0
      $('.main-container').addClass('to-up').on('animationend', function() {
        $(this).removeClass('to-up')
      })
      setGrayStyle()
      checkAndSetArticlePageLayout()
    })
    $(document).on('pjax:popstate', function() {
      status = -1
      checkAndSetArticlePageLayout()
      // $('.main-container').fadeIn()
    })
  </script>
</body>
</html>